package com.wanmait.community.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wanmait.community.entity.Room;

import java.util.List;

public interface RoomService extends IService<Room>{

    Room findRoomByBIdAndUIdAndRoomName(Room room);

    PageInfo<Room> findPage(Room room, Integer pageNum, Integer pageSize);
    void deleteRoomById(Room room);

    List<Room> findRoomByBuildingId(Integer buildingId);

    boolean insertRoom(List<Room> rooms);
}
